<template>
  <div class="app">
    <div class="image"><img src="https://todolist.jimmy512.com/assets/logo-CPmPqqKk.png" alt="主页图" /></div>
    <div class="navigate">
      <RouterLink to="/Handle">待办清单</RouterLink>
      <RouterLink :to="{ name: 'calculate' }">Pinia范例</RouterLink>
      <RouterLink :to="{ path: '/Settimeout' }">计时器</RouterLink>
    </div>
    <div class="main-content">
      <RouterView></RouterView>
    </div>
  </div>
</template>

<script setup lang="ts" name="App">
  import { RouterView, RouterLink } from "vue-router";
</script>

<style scoped>
  .app {
    width: 100%;
    height: 200px;
  }
  img {
    display: inline-block;
    width: 40px;
    height: 40px;
  }
  .image {
    text-align: center;
    width: 100%;
    height: 40px;
  }
  .navigate {
    /* width: 100%; */
    display: flex;
    justify-content: space-around;
    margin: 0 300px;
    margin-top: 50px;
  }
  .navigate a {
    display: block;
    text-align: center;
    width: 150px;
    height: 40px;
    line-height: 40px;
    border-radius: 10px;
    /* background-color: #0b89dc; */
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 25px;
    font-weight: 700;
    /* padding: 10px 30px; */
    letter-spacing: 2px;
  }
  .main-content {
    margin: 0 auto;
    margin-top: 100px;
  }
</style>
